function Student(name, age) {
  this.name = name
  this.age = age
}

function Teacher() {

}

// const stu = new Student("yz", 18)

// console.log(stu);
// console.log(stu.__proto__ === Student.prototype);

// 执行Student函数中的内容，创建出来的是Teacher对象
const teacher = Reflect.construct(Student, ["yz", 18], Teacher)
console.log(teacher);
console.log(teacher.__proto__ === Teacher.prototype);

